package com.hu.zhcc.shiro.controller.xsx;


import com.hu.zhcc.shiro.entity.xsx.XsxTSetmealCheckitem;
import com.hu.zhcc.shiro.service.xsx.TSetmealCheckitemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xsx
 * @since 2021-06-18
 */
@RestController
@RequestMapping("/tSetmealCheckitem")
public class TSetmealCheckitemController {

    @Autowired
    TSetmealCheckitemService tSetmealCheckitemService;


    @PostMapping("/{setmealId}")
    private List<XsxTSetmealCheckitem> query(@PathVariable("setmealId") Integer setmealId){
        List<XsxTSetmealCheckitem> tSetmealList = tSetmealCheckitemService.queryItem(setmealId);
        return tSetmealList;
    }

}

